<?php
require_once 'mysql.php';

class Model {

    protected $db;

    public function __construct() {
        $this->db = new db(DB_HOST, DB_USER, DB_PASSWORD);
    }

    protected function _initialize($params)
    {
        if(count($params) > 0)
        {
            foreach ($params as $key => $val)
            {
                if(isset($key))
                {
                    $this->$key = $val;
                }
            }
        }
    }
}